import type { LoginParams, LoginData } from '@/types/login'
import request from '@/utils/request'

/**
 * @description: 登录函数
 * @param {*} data { mobile,password }
 * @return {*} promise
 */
export const loginAPI = (data: LoginParams) => {
  return request<LoginData>('/v1_0/authorizations', 'POST', data)
}


